package cart;

import java.io.Serializable;

public class CartItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int itemId;
	private String itemName;
	private int qty;
	

	// update items in the shopping cart
	public void update(int itemId, int qty) {
		setitemId(itemId);
		setQty(qty);
	}

	// setter and getter methods
	public int getitemId() {
		return itemId;
	}

	public void setitemId(int itemId) {
		this.itemId = itemId;
	}

	public int getQty() {
		return qty;
	}

	public void setQty(int qty) {
		this.qty = qty;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
}
